import request from '@/utils/request'

// 查询设备状态及数据列表
export function getDeviceZtAndList() {
  return request({
    url: '/deviceBigscreen/getDeviceZtAndList',
    method: 'get'
  })
}

// 查询设备的图表数据
export function getDeviceDataList(query) {
  console.log(query)
  return request({
    url: '/deviceBigscreen/getDeviceDataList',
    method: 'get',
    params: query
  })
}

// 获取设备数据
export function getDeviceInfoList(data) {
  return request({
    url: '/wrj/deviceInfo/list',
    headers: {
      isToken: true
    },
    method: 'post',
    data: data
  })
}